<template>
  <div class="flex-box">
    <span class="avatar">
      <IconImage />
    </span>
    <div class="content">
      <a-typography-title :heading="6">{{name}}</a-typography-title>
      {{ desc }}
    </div>
  </div>
</template>

<script lang="ts" setup>
import { IconImage } from '@arco-design/web-vue/es/icon';
import { defineProps } from 'vue';
import { AiMenuItem } from '@/types/global';

withDefaults(defineProps<AiMenuItem>(), {
  icon: '',
  name: '',
  desc: ''
});
</script>

<style lang="less" scoped>
.flex-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FBFBFC;
  border-radius: 12px;

  .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 16px;
    color: var(--color-text-2);
    font-size: 16px;
    background-color: var(--color-fill-3);
    border-radius: 50%;
  }

  .content {
    flex: 1;
    color: var(--color-text-2);
    font-size: 12px;
    line-height: 20px;
  }
}
</style>
